package com.example.understandvideo.service.transcode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.*;

@Data// lombok注解，给字段添加getter和setter
@XmlAccessorType(XmlAccessType.FIELD)// 映射所有的字段
@XmlRootElement(name = "task")// XML根节点名称，此处为user
@AllArgsConstructor
@NoArgsConstructor
@XmlType(propOrder = {"name"
        , "description"
        , "encodingoption"
        , "priority"
        , "gpuid"
        , "videodecoding"
        , "videodecoderthread"
        , "preprocessmode"
        , "preprocessthread"
        , "transcodingtype"
        , "fileanalyzetype"
        , "status"
        , "streams"
        , "inputs"
        , "outputgroups"})
public class CloudCutTask {
    //节点属性
    @XmlAttribute
    private String id;
    @XmlAttribute
    private String href;
    //子节点字段
    private String name;
    private String description;
    private String encodingoption;
    private String priority;
    private String gpuid;
    private String videodecoding;
    private String videodecoderthread;
    private String preprocessmode;
    private String preprocessthread;
    private String transcodingtype;
    private String fileanalyzetype;
    private String status;
    private CloudStreams streams;
    public CloudInputs inputs;
    private CloudOutputGroups outputgroups;

}